package com.itheima.service;

import com.itheima.dto.MealDto;
import com.itheima.pojo.Meal;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface MealService {
    boolean addMeal(MealDto dto);

    List<Meal> getMealPage(String name,int page,int pageSize);

    boolean modifyMeal(Meal meal);

    Meal getMealById(String id);

    boolean modifyStatus(int status, String... ids);

    @Transactional
    boolean deleteMeal(String[] mealIds);
}
